{% extends 'base_user.html' %}

{% load static %}

{% block title %}
    {{ block.supper }}

    注册
{% endblock %}

{% block ext_js %}
    {{ block.supper }}

    <script type="text/javascript" src="{% static 'axf/user/register/register.js' %}"></script>
{% endblock %}

{% block content %}
    {{ block.supper }}

    <div class="container">
        <form action="{% url 'axfuser:register' %}" method="post" enctype="multipart/form-data">
            {% csrf_token %}
            <div class="form-group">
                <label for="exampleInputName">用户名</label>
                <input type="text" name="name" class="form-control" id="exampleInputName" placeholder="请输入用户名：">
                <span id="nameinfo"></span>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" class="form-control" id="exampleInputPassword1" name="password" placeholder="请输入密码：">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword2">确认密码</label>
                <input type="password" class="form-control" id="exampleInputPassword2" name="password2"
                       placeholder="请输入确认密码:">
                <span id="passwordInfo"></span>
            </div>
            <div class="form-group">
                <label for="exampleInputEmail1">邮箱</label>
                <input type="email" class="form-control" id="exampleInputEmail" name="email" placeholder="请输入Email:">
            </div>
            <div class="form-group">
                <label for="exampleInputFile">头像</label>
                <input type="file" id="exampleInputFile" name="icon">
            </div>

            <button type="submit" class="btn btn-success btn-block">注册</button>
        </form>
    </div>
{% endblock %}